gtk/scrolledwindow: Check for overshoot setting up kinetic scroll helpers
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 29 Jul 2022 18:34:55 +0000 (20:34 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sun, 7 Aug 2022 18:26:52 +0000 (20:26 +0200)
commit0e5a97ae58c26b48a75f3a186dc171a5a6e93d98
treeaccb0b820014df1b4953101e58ebd12b21183cbc
parent7a306fe32fb8dc5b4bfa8a29c12ab39069df4673
gtk/scrolledwindow: Check for overshoot setting up kinetic scroll helpers

We may have situations where velocity is 0/0, but are overshooting. Places where
this happens are mouse wheels, and continuous scroll that ended up still before
finish. In this situation we also want to run the animation for overshoot, so
check for the corresponding axes to also set up the kinetic scroll helper.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4784
gtk/gtkscrolledwindow.c